ARM: vITS: create and initialize virtual ITSes for Dom0
authorAndre Przywara <andre.przywara@arm.com>
Wed, 7 Sep 2016 00:44:05 +0000 (01:44 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 14 Jun 2017 18:38:38 +0000 (11:38 -0700)
commita1df3d257f1c2ff1ec3a5466a0da8ec747795c77
treea4fa752944b038909c8b908d991a7f2c0b75cb1d
parent1bef9339a0d5f52c3f06449894bde0e85324338b
ARM: vITS: create and initialize virtual ITSes for Dom0

For each hardware ITS create and initialize a virtual ITS for Dom0.
We use the same memory mapped address to keep the doorbell working.
This introduces a function to initialize a virtual ITS.
We maintain a list of virtual ITSes, at the moment for the only
purpose of later being able to free them again.
We configure the virtual ITSes to match the hardware ones, that is we
keep the number of device ID bits and event ID bits the same as the host
ITS.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/vgic-v3-its.c
xen/include/asm-arm/domain.h